<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>收货地址管理</title>
	<!-- 引入css样式 -->
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<link rel="stylesheet" type="text/css" href="css/common_head.css">
	<link rel="stylesheet" type="text/css" href="css/cart.css">
	<link rel="stylesheet" type="text/css" href="css/address_management.css">
	<script src="js/site/require.js" defer async="true" data-main="js/site/address_management_main"></script>
</head>
<body>
	<!--头部导航开始-->
	<header class="header_outbox">
		<div class="header_inbox">
			<div class="loginbox">
	            <p> 欢迎访问机械配件商城</p>
	            <a href="#" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ 访问官网 ]</a>
	            <span id="register_info">
		            <a href="load.html" class="login">&nbsp;&nbsp;&nbsp;&nbsp;登录&nbsp;&nbsp;</a>
		            <img src="images/common/header_line.jpg">
		            <a href="register.html" class="login">&nbsp;&nbsp;免费注册&nbsp;&nbsp;&nbsp;&nbsp;</a>
	            </span>
	            <span id="login_info" style="display: none;">
	            	<a href="#" id="headerUsername" class="login"></a>
		            <img src="images/common/header_line.jpg">
		            <a href="#" id="headerLogout" class="login">&nbsp;&nbsp;退出</a>
	            </span>
        	</div>
	        <ul class="my_action fix">
	            <li>
	                <a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的关注</a>
	            </li>
	            <li>
	                <img src="images/common//mix_car.png">
	                <a href="cart.html">购物车<span id="cartQuantity">[0]</span></a>
	            </li>
	            <li>
	                <a href="#">我的商城</a>
	            </li>
	        </ul>
		</div>
	</header>
	<!--头部导航结束-->
	<!--Logo和头部搜索开始-->
	<div class="action_search_box content_box">
	    <a class="logo" href="index.html"></a>
	    <div class="inputbox">
	        <input type="text" id="keyword" name="keyword" placeholder="请输入您感兴趣的内容">
	        <button class="searchbtn" id="searchBtn">搜&nbsp;索</button>
	        <div class="hotword">热销：
	            <a href="product_search.html?name=润滑油" target="_blank">&nbsp;&nbsp;&nbsp;润滑油&nbsp;&nbsp;&nbsp;</a>
	        </div>
    	</div>
	    <img class="telephonenumber" src="images/common/telephone_number.jpg">
	</div>
	<!--Logo和头部搜索结束-->
	<!--分割线-->
	<hr style="height: 1px; border: none; border-top: 1px solid #DDD; margin: 25px 0px 25px 0px;">
<div>
	<div class="content_box clear_fix">
	<!--我的左侧菜单开始-->
		<div class="left_nav l">
		 	<div class="person_info clearfix">
		        <div class="head_img">
		            <img src="images/common/level.png" alt="">
		        </div>
		        <div class="welcome_info">
		            hi，亲爱的  欢迎回来
		        </div>
		        <div class="level_score">
		        	<div class="clearfix">
			            <div class="l">会员等级：</div>
			            <div class="level_value l">菜鸟</div>
		            </div>
		            <div class="clearfix">
		            <div class="l">会员积分：</div>
		            <div class="score_value l">0</div>
		            </div>
		        </div>
		    </div>
		    <div id="my-deal">
		        <a href="javascript:void(0);">
		        	<div class="row title">
		        		<div class="dashed">我的交易</div>
		        	</div>
		        </a>
		        <a href="order_list.html">
		        	<div class="item">我的订单</div>
		        </a>
		        <a href="cart.html">
		        	<div class="item  ">我的购物车</div>
		        </a>
		        <a href="#"><div class="item ">我的积分购物车</div></a>
		        <a href="#"><div class="item ">我的积分消费</div></a>
		        <a href="#"><div class="item ">我的关注</div></a>
		        <a href="#"><div class="item ">我的购买咨询</div></a>
		        <a href="#"><div class="item ">我的优惠券</div></a>
		        <div class="item active"><a href="#">收货地址管理</a></div>
		        <a href="#"><div class="item ">我的推荐</div></a>
		    </div>
		    <div id="my-account">
		        <a href="javascript:;">
		        	<div class="title">
		        		<div class="dashed">我的账户</div>
		        	</div>
		        </a>
		        <div class="item"><a href="information_modification.html">个人资料</a></div> 
		        <div class="item"><a href="password_modification.html">修改密码</a></div>
		    </div>
		</div>    
		<!--我的左侧菜单结束-->
    	<!--右侧地址管理-->
	    <div class="">
            <div class="right_title">收货地址管理</div>
            <hr style="width: 870px;float: right; border: none;border-top: 1px solid #DDD;margin: 5px 0px 0px 0px;">
            <!--新增地址-->
            <div class="new_address">
                <div style="color:red;margin-top: 20px;margin-left: 270px;">新增收货地址</div>
                <div class="management_box">
                    <div class="management_item"><span style="color:red;">*</span>地址信息:</div>
					<div data-toggle="distpicker" id="distpicker1">
					    <select id="eprovinceName" name="provinceName" class="management_input" style="width:130px;"></select>
					    <select id="ecityName" name="cityName" class="management_input" style="width:130px;"></select>
					    <select id="edistrictName" name="districtName" class="management_input" style="width:130px;"></select>
					</div>
                </div>
                <div class="management_box">
                    <div class="management_item"><span style="color:red;">*</span>详细地址:</div>
                    <input id="detailAddr" type="text" placeholder="请输入详细地址信息，如道路、门牌号、小区、楼栋号、单元等信息" class="management_input"></input>
                </div>
                <div class="management_box">
                    <div class="management_item" style="margin-left: 9px;">邮政编码:</div>
                    <input id="zip" type="text" placeholder="请填写邮编" class="management_input"></input>
                </div>
                <div class="management_box">
                    <div class="management_item" style="margin-left:-12px;"><span style="color:red;">*</span>收货人姓名:</div>
                    <input id="consignee" type="text" placeholder="长度不超过20个字符" maxlength="20" class="management_input"></input>
                </div>
                <div class="management_box">
                    <div class="management_item"><span style="color:red;">*</span>手机号码:</div>
                    <input id="phone" type="text" placeholder="长度不超过20个字符" maxlength="20" class="management_input"></input>
                </div>
                <input id="btnSave" type="submit" class="management_btn" value="保存">
            </div>
            
            <div class="" style="float:left;margin-top:25px;margin-left: 50px;">
            	<!-- 动态添加 -->
                <table id="address_container">                   
                    
                </table>
                
            </div>
        </div>
	</div>
<script id="address_tpl" type="text/x-handlebars-template">
	<colgroup>
                    <col style="width: 70px;">
                    <col style="width: 120px;">
                    <col style="width: 200px;">
                    <col style="width: 100px;">
                    <col style="width: 140px;">
                    <col style="width: 110px;">
                    <col style="width: 90px;">
    </colgroup>
                    <thead>
                        <tr >
                            <th class="next_table_cell" >收货人</th>
                            <th class="next_table_cell">所在地区</th>
                            <th class="next_table_cell">详细地址</th>
                            <th class="next_table_cell">邮编</th>
                            <th class="next_table_cell">电话/手机</th>
                            <th class="next_table_cell">操作</th>
                            <th class="next_table_cell"></th>
                        </tr>
                    </thead>
	{{#each this}}
		<tr style="border:1px solid #000">
			<td class="next_table_cell1">{{name}}</td>
			<td class="next_table_cell1">{{province}}{{city}}{{district}}</td>
			<td class="next_table_cell1">{{addr}}</td>
			<td class="next_table_cell1">{{zip}}</td>
			<td class="next_table_cell1">{{mobile}}</td>
			<td class="next_table_cell1"><a href="#" class="addr_update" addr_id={{id}}>修改</a><span>|</span><a href="#" class="addr_del" addr_id={{id}}>删除</a></td>
			<td class="next_table_cell1">{{state default_addr id}}</td>
		</tr>
	{{/each}}
</script>

	<!--产品服务开始-->
	<div id="product_service" class="content_box clearfix">
        <ul>
            <li class="item l">
                <p class="item_icon icon1 l"></p>
                <div class="item_text l">
                    <p class="text_tit">真实货源</p>
                    <p class="text_info">一手货源&nbsp;真实存在</p>
                </div>
            </li>
            <li class="item l">
                <p class="item_icon icon2 l"></p>
                <div class="item_text l">
                    <p class="text_tit">品质保障</p>
                    <p class="text_info">垂直专业&nbsp;优选厂商</p>
                </div>
            </li>
            <li class="item l">
                <p class="item_icon icon3 l"></p>
                <div class="item_text l">
                    <p class="text_tit">服务保障</p>
                    <p class="text_info">专业服务团队</p>
                </div>
            </li>
            <li class="item l">
                <p class="item_icon icon4 l"></p>
                <div class="item_text l">
                    <p class="text_tit">交易透明</p>
                    <p class="text_info">买卖双方面谈价格</p>
                </div>
            </li>
        </ul>
	</div>
	<!--产品服务结束-->
</div>
	<!--底部开始-->
	<div class="footerbox">
        <div class="footer">
	        <div class="content_box clearfix">
	            <div class="footerinside">
	                <h1>新手指南</h1>
	                <a href="#" target="_blank">免费注册</a>
	                <a href="#" target="_blank">个人资料及密码</a>
	                <a href="#" target="_blank">商品关注</a>
	                <a href="#" target="_blank">查询订单</a>
	                <a href="#" target="_blank">购物流程</a>
	            </div>
	            <div class="footerinside">
	                <h1>付款/退款</h1>
	                <a href="#" target="_blank">在线支付</a>
	                <a href="#" target="_blank">银行转账</a>
	                <a href="#" target="_blank">发票办理</a>
	            </div>
	            <div class="footerinside">
	                <h1>配送方式</h1>
	                <a href="#" target="_blank">快递配送</a>
	                <a href="#" target="_blank">零担物流</a>
	            </div>
	            <div class="footerinside">
	                <h1>售后服务</h1>
	                <a href="#" target="_blank">退货流程</a>
	                <a href="#" target="_blank">退货政策</a>
	            </div>
	            <div id="currentfooterInside" class="footerinside">
	                <h1>帮助中心</h1>
	                <a href="#" target="_blank">常见热点问题</a>
	                <a href="#" target="_blank">联系我们</a>
	                <a href="#" target="_blank">投诉与建议</a>
	            </div>
	        </div>
        </div>

        <div class="copyright_bgcolor">
	        <div class="copyright">Copyright © 2018 XXXX数字科技有限公司 版权所有 保留一切权利 鲁ICP备XXXXXXXX号-X</div>
        </div>
    </div>
	<!--底部结束-->
</body>
</html>